package vip.mall.modular.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import vip.mall.common.entity.CommonEntity;

/**
 * @author ASUS
 * @Date 2025/2/10 10:27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_goods")
public class Goods extends CommonEntity {
    @Schema(description = "商品名称")
    private String goodsName;
    @Schema(description = "商品描述")
    private String goodsDesc;
    @Schema(description = "商品价格")
    private double goodsPrice;
    @Schema(description = "商品图片")
    private String goodsImg;
    @Schema(description = "商品所属类目id")
    private String typeId;
    @Schema(description = "商品总库存")
    private int stockNum;
    @Schema(description = "商品状态，1表示正在出售，2表示已经售空，3表示已经下架")
    private int goodsStatus;
}
